'use strict';
/**
 * Created by deng on 16-1-19.
 */

angular.module('metalabPartnerApp').config(['$stateProvider', function ($stateProvider) {
    $stateProvider.state('meta.technology.list', {
        url: '/list',
        abstract: true,
        views: {
            'body@meta': {
                templateUrl: 'views/technology/list/technologyList.html',
                controller: 'TechnologyListCtrl'
            }
        }
    }).state('meta.technology.list.all', {
        url: '?area&effect&origin&keywords&page',
        views: {
            'list': {
                templateUrl: 'views/technology/list/technologyListAll.html',
                controller: 'TechListAllCtrl'
            }
        },
        params: {
            page: '1'
        }
    }).state('meta.technology.list.released', {
        url: '/released?area&effect&origin&page',
        views: {
            'list': {
                templateUrl: 'views/technology/list/technologyListReleased.html',
                controller: 'TechListReleasedCtrl'
            }
        },
        params: {
            page: '1'
        }
    }).state('meta.technology.list.favorite', {
        url: '/favorite?page',
        views: {
            'list': {
                templateUrl: 'views/technology/list/technologyListFavorite.html',
                controller: 'TechListFavoriteCtrl'
            }
        },
        params: {
            page: '1'
        }
    });
}]);
